﻿<%@ Page Language="C#" MasterPageFile="~/Master/Management.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Access_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">var btn_delete = ("#<%= btn_MultipleDelete.ClientID %>");</script>
    <script src="../js/access/default.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="functionBtns">
    <div class="btns">
        <img src="<%=ThemePath("new.gif")%>" alt="new" width="20" height="16" align="top" /><a href="addrole.aspx">添加身份</a>
        <img src="<%=ThemePath("list.gif")%>" alt="list" width="20" height="16" align="top" /><a href="Default.aspx" class="active">身份列表</a>
    </div>
    <div class="clear"></div>
</div>

<div class="DG">
	<table cellspacing="0" >
    	<tr>
    	  <th width="30"><input type="checkbox" id="cb_All" /></th>
    	  <th width="50">序号</th>
       	  <th width="100">名称</th>
       	  <th>描述</th>
          <th width="80">操作</th>
        </tr>
        <asp:Repeater ID="rpt_RoleList" runat="server" OnItemCommand="rpt_RoleList_ItemCommand">
            <ItemTemplate>
                <tr onmouseover="this.className='tdmover';" onmouseout="this.className='tdmout';">
                    <td><input type="checkbox" id="cb_One" runat="server" value='<%#Eval("RoleID") %>' /></td>
                    <td><%# Container.ItemIndex + 1 %></td>
	                <td>
	                    <%# Eval("RoleName") %>                
	                </td>
	                <td><%# Eval("Description") %></td>
	                <td>
	                    <input type="button" id="btn_Edit" class="editButton" title="编辑" onclick="location.href='editrole.aspx?id=<%#Eval("RoleID")%>'" />
	                    <asp:Button ID="btn_Delete" runat="server" CommandName="delete"  ToolTip="删除" CommandArgument='<%# Eval("RoleID") %>' OnClientClick="return confirm('确定要删除当前角色吗？');" CssClass="deleteButton" />	                   
	                </td>
	            </tr>
	        </ItemTemplate>
	    </asp:Repeater>
    </table>
    <br />
    <asp:Button ID="btn_MultipleDelete" runat="server" Text="选中删除" CssClass="btn" OnClick="btn_MultipleDelete_Click" OnClientClick="return confirm('确定要删除选定身份吗？');"/>
</div>
</asp:Content>